package jk.zmn.thread.pro;

/**
 * @author 张梦楠
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2018/5/2619:31
 * @blog www.itzmn.com
 */
public class Good {

    public int nums;

    public int getNums() {
        return nums;
    }

    public void setNums(int nums) {
        this.nums = nums;
    }

    void make(){
        System.out.println("生产了数据"+ ++nums);
    }

    void eat(){

        System.out.println("消费了数据"+nums--);
    }

}
